import 'package:seedfour/generated/json/base/json_field.dart';
import 'package:seedfour/generated/json/pay_order_list_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class PayOrderListEntity {
	int? total;
	String? sumAmount;
	String? plusAmount;
	String? minusAmount;
	List<PaidOrderInfo>? data;
	bool? hasBoxPermission;

	PayOrderListEntity();

	factory PayOrderListEntity.fromJson(Map<String, dynamic> json) => $PayOrderListEntityFromJson(json);

	Map<String, dynamic> toJson() => $PayOrderListEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class PaidOrderInfo {
	String? id;
	String? attach;
	String? creatorName;
	int? createdAt;
	int? updatedAt;
	String? uid;
	String? title;
	String? pTitle;
	bool? isPreorder;
	int? orderAmount;
	int? payAmount;
	int? invoicedAt;
	String? mobile;
	int? collectionDate;
	int? orderType;
	String? invoice;
	int? invoiceStatus;
	dynamic failReason;
	String? orderRemark;
	int? flowId;
	String? operatorUid;
	String? editor;
	int? marginAmount;
	dynamic marginDate;
	String? creator;
	int? orderStatus;
	int? channelOrderStatus;
	PayOrderListDataSettle? settle;
	String? orderAmountStr;
	String? payAmountStr;

	PaidOrderInfo();

	factory PaidOrderInfo.fromJson(Map<String, dynamic> json) => $PaidOrderInfoFromJson(json);

	Map<String, dynamic> toJson() => $PaidOrderInfoToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class PayOrderListDataSettle {
	String? ratio;
	String? settleAmount;

	PayOrderListDataSettle();

	factory PayOrderListDataSettle.fromJson(Map<String, dynamic> json) => $PayOrderListDataSettleFromJson(json);

	Map<String, dynamic> toJson() => $PayOrderListDataSettleToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}